import Vue from 'vue'
import App from './App.vue'

// 公共样式
import '@/styles/index.scss';

// eslint-disable-next-line
// 自适应750的稿  rem
import unitConversion from './tool/unitConversion.js';
import 'swiper/dist/css/swiper.min.css';
import 'swiper/dist/js/swiper.min';
import { router } from '@/router/permission';
import VueWechatTitle from 'vue-wechat-title';
// import 'swiper/dist/css/swiper.css'
import http from '@/tool/axios'

import 'babel-polyfill';
// import  VConsole  from  'vconsole';
// new VConsole();

import {
  Switch,
  PullRefresh,
  CountDown,
  Stepper,
  Cascader,
  Toast,
  Field,
  Search,
  NavBar,
  Empty,
  Swipe,
  SwipeItem,
  Tabs,
  Tab,
  List,
  Icon,
  Popup,
  Picker,
  Area,
  ActionSheet,
  Rate,
  Cell,
  CellGroup,
  Button,
  Dialog,
  Checkbox,
  CheckboxGroup,
  Form,
  RadioGroup,
  Radio,
  Uploader,
  DropdownMenu, DropdownItem,
  Step,
  Steps,
  DatetimePicker,
  NumberKeyboard,
  PasswordInput,
  Progress ,
  Calendar,
  Tabbar, 
  TabbarItem,
  Overlay,
  Popover,
} from 'vant'
import 'vant/lib/index.css';

Vue.use(Field)
Vue.use(Toast)
.use(Switch)
.use(PullRefresh)
.use(CountDown)
.use(ActionSheet)
.use(Stepper)
.use(Cascader)
.use(Search)
.use(NavBar)
.use(Empty)
.use(Swipe)
.use(SwipeItem)
.use(Tabs)
.use(Tab)
.use(List)
.use(Icon)
.use(Popup)
.use(Picker)
.use(Area)
.use(Rate)
.use(Cell)
.use(CellGroup)
.use(Button )
.use(Dialog)
.use(Checkbox)
.use(CheckboxGroup)
.use(Form)
.use(RadioGroup)
.use(Radio)
.use(Uploader)
.use(DropdownMenu)
.use(DropdownItem)
.use(Step)
.use(Steps)
.use(DatetimePicker)
.use(NumberKeyboard)
.use(PasswordInput)
.use(Progress)
.use(Calendar)
.use(Tabbar)
.use(TabbarItem)
.use(Overlay)
.use(Popover)
Vue.config.productionTip = false;
Vue.use(VueWechatTitle);
// Vue.use(BaiduMap, {
//   ak: 'KsqhQkplOIUTi1Fb3le9mxX4eG1MrHSR'
// })
Vue.prototype.$http = http;


// 销量 - 文字规则
function saleWordFilter(Vue) {
  Vue.filter('saleWordFilter', (value) => {
    return `${value}`; 
  });
}
 
Vue.use(saleWordFilter);


new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
